package cn.stylefeng.guns.sys.modular.system.mapper;

import cn.stylefeng.guns.base.pojo.node.LayuiTreeNode;
import cn.stylefeng.guns.base.pojo.node.ZTreeNode;
import cn.stylefeng.guns.sys.modular.system.entity.CwKjkm;
import cn.stylefeng.guns.sys.modular.system.model.params.CwKjkmParam;
import cn.stylefeng.guns.sys.modular.system.model.result.CwKjkmResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 会计科目表 Mapper 接口
 * </p>
 *
 * @author gong
 * @since 2021-02-01
 */
public interface CwKjkmMapper extends BaseMapper<CwKjkm> {

    /**
     * 获取列表
     *
     * @author gong
     * @Date 2021-02-01
     */
    List<CwKjkmResult> customList(@Param("paramCondition") CwKjkmParam paramCondition);

    /**
     * 获取map列表
     *
     * @author gong
     * @Date 2021-02-01
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") CwKjkmParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author gong
     * @Date 2021-02-01
     */
    Page<CwKjkmResult> customPageList(@Param("page") Page page, @Param("paramCondition") CwKjkmParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author gong
     * @Date 2021-02-01
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") CwKjkmParam paramCondition);

    List<LayuiTreeNode> layuiTree();

    List<ZTreeNode> tree();

    CwKjkmResult findBySpec(@Param("paramCondition") CwKjkmParam param);

    List<CwKjkmResult> findListBySpec(@Param("paramCondition") CwKjkmParam param);

}
